package com.example.lottery_system.service;


import com.example.lottery_system.controller.param.ActivityParam;
import com.example.lottery_system.controller.param.PageParam;
import com.example.lottery_system.controller.result.PageResult;
import com.example.lottery_system.service.dto.ActivityDetailDTO;
import com.example.lottery_system.service.dto.ActivityDto;
import com.example.lottery_system.service.dto.ActivityListDto;

import java.util.List;

public interface ActivityService {


    ActivityDto createActivity(ActivityParam param);

    PageResult<List<ActivityListDto>> findActivityList(PageParam param);


    void cacheActivityToRedis(ActivityDetailDTO activityDetailDTO);


    ActivityDetailDTO  getActivityDetailDTO(Long activityId);

    ActivityDetailDTO findActivityDetailFromRedis(Long activityId);

    Boolean deleteActivity(Long activityId);
}
